const xhr = new XMLHttpRequest();

// XMLHttpRequest.open(method, url, async, user, password)
xhr.open("GET", "http://jsonplaceholder.typicode.com/", true);

xhr.onreadystatechange(function() {});

xhr.send();
